home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000824-20010305
/
000100_news@columbia.edu _Thu Oct 26 09:39:58 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-03-05
|
2KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id JAA21795
for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 26 Oct 2000 09:39:57 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA25939
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 26 Oct 2000 09:39:57 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA28890
for kermit.misc@watsun.cc.columbia.edu; Thu, 26 Oct 2000 09:34:39 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: log of a kermit comunication
Date: 26 Oct 2000 13:34:31 GMT
Organization: Columbia University
Message-ID: <8t9bt7$s6o$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <Pine.LNX.3.96.1001025195005.17762B-100000@atlanta.i2.com.br>,
Luiz Geraldo Silva Braz <braz@i2.com.br> wrote:
: ...
: unsigned short int CRC = crc16(concat(TL32,S32,T,D))
:
: C1 = (CRC shr 12) and $0F (1st. character)
: C2 = (CRC shr 6) and $3F (2nd. character)
: C3 = CRC and $3f (guess you)
:
: Is it the method?
:
Yes. Here is some actual code:
j = chk3(p+1,m);
p[i++] = tochar((j >> 12) & 017);
p[i++] = tochar((j >> 6) & 077);
p[i++] = tochar(j & 077);
tochar() just adds 32 to make it a printable character.
- Frank